<@html>
<script type="text/javascript">
	dojo.require("dijit.dijit");
	dojo.require("dijit.form.Form");
	dojo.require("dijit.form.DateTextBox");
	dojo.require("dijit.form.Button");
	dojo.require("dijit.form.ValidationTextBox");
	dojo.require("dijit.form.CheckBox");
</script>
<form id="updateForm" method="post" dojoType="dijit.form.Form">
<input type="hidden" id="version" name="material.version"
       value="${(material.version)!}"/>
<input type="hidden" id="material" name="material.id"
       value="${(material.id)!}"/>
<input type="hidden" id="master.materialDetail" name="master.materialDetail.id"
       value="${(master.materialDetail.id)!}"/>
<input type="hidden" id="material.customerSetting" name="material.customerSetting.id"
       value="${(material.customerSetting.id)!}"/>
<table>
	<tr>
		<td>
		<@s.text name="materialCode"/>：
		</td>
		<td>
			<input id="materialCode" name="material.materialCode" dojoType="dijit.form.ValidationTextBox"
			       required="true" value="${(material.materialCode)!}"/>
		</td>
		<td>
		<@s.text name="materialName"/>：
		</td>
		<td>
			<input id="materialName" name="material.materialName" dojoType="dijit.form.ValidationTextBox"
			       required="true" value="${(material.materialName)!}"/>
		</td>
		<td>
		<@s.text name="ename"/>：
		</td>
		<td>
			<input id="ename" name="material.ename" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.ename)!}"/>
		</td>
	</tr>
	<tr>
		<td>
		<@s.text name="materialSpec"/>：
		</td>
		<td>
			<input id="materialSpec" name="material.materialSpec" dojoType="dijit.form.ValidationTextBox"
			       required="true" value="${(material.materialSpec)!}"/>
		</td>
		<td>
		<@s.text name="helpCode"/>：
		</td>
		<td>
			<input id="helpCode" name="material.helpCode" dojoType="dijit.form.ValidationTextBox" required="true"
			       value="${(material.helpCode)!}"/>
		</td>
		<td>
		<@s.text name="barcode"/>：
		</td>
		<td>
			<input id="barcode" name="material.barcode" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.barcode)!}"/>
		</td>
	</tr>
	<tr>
		<td>
		<@s.text name="price"/>：
		</td>
		<td>
			<input id="price" name="material.price" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.price)!}"/>
		</td>
		<td>
		<@s.text name="currency"/>：
		</td>
		<td>
			<input id="currency" name="material.currency" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.currency)!}"/>
		</td>
		<td>
		<@s.text name="producingArea"/>：
		</td>
		<td>
			<input id="producingArea" name="material.producingArea" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.producingArea)!}"/>
		</td>
	</tr>
	<tr>
		<td>
		<@s.text name="packUnit"/>：
		</td>
		<td>
			<input id="packUnit" name="material.packUnit" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.packUnit)!}"/>
		</td>
		<td>
		<@s.text name="packQty"/>：
		</td>
		<td>
			<input id="packQty" name="material.packQty" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.packQty)!}"/>
		</td>
		<td>
		<@s.text name="packWeight"/>：
		</td>
		<td>
			<input id="packWeight" name="material.packWeight" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.packWeight)!}"/>
		</td>
	</tr>
	<tr>
		<td>
		<@s.text name="weightUnit"/>：
		</td>
		<td>
			<input id="weightUnit" name="material.weightUnit" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.weightUnit)!}"/>
		</td>
		<td>
		<@s.text name="packGrossWeight"/>：
		</td>
		<td>
			<input id="packGrossWeight" name="material.packGrossWeight" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.packGrossWeight)!}"/>
		</td>
		<td>
		<@s.text name="packVolumn"/>：
		</td>
		<td>
			<input id="packVolumn" name="material.packVolumn" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.packVolumn)!}"/>
		</td>
	</tr>
	<tr>
		<td>
		<@s.text name="volumnUnit"/>：
		</td>
		<td>
			<input id="volumnUnit" name="material.volumnUnit" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.volumnUnit)!}"/>
		</td>
		<td>
		<@s.text name="maxStorage"/>：
		</td>
		<td>
			<input id="maxStorage" name="material.maxStorage" dojoType="dijit.form.ValidationTextBox" required="true"
			       value="${(material.maxStorage)!}"/>
		</td>
		<td>
		<@s.text name="minStorage"/>：
		</td>
		<td>
			<input id="minStorage" name="material.minStorage" dojoType="dijit.form.ValidationTextBox" required="true"
			       value="${(material.minStorage)!}"/>
		</td>
	</tr>
	<tr>
		<td>
		<@s.text name="safeStorage"/>：
		</td>
		<td>
			<input id="safeStorage" name="material.safeStorage" dojoType="dijit.form.ValidationTextBox" required="true"
			       value="${(material.safeStorage)!}"/>
		</td>
		<td>
		<@s.text name="storageUnit"/>：
		</td>
		<td>
			<input id="storageUnit" name="material.storageUnit" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.storageUnit)!}"/>
		</td>
		<td>
		<@s.text name="storageType"/>：
		</td>
		<td>
			<input id="storageType" name="material.storageType" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.storageType)!}"/>
		</td>
	</tr>
	<tr>
		<td>
		<@s.text name="storageTerms"/>：
		</td>
		<td>
			<input id="storageTerms" name="material.storageTerms" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.storageTerms)!}"/>
		</td>
		<td>
		<@s.text name="autoAlarm"/>：
		</td>
		<td>
		<@checkbox id="autoAlarm" name="material.autoAlarm" value=material.autoAlarm/>
		</td>
		<td>
		<@s.text name="abcType"/>：
		</td>
		<td>
			<input id="abcType" name="material.abcType" dojoType="dijit.form.ValidationTextBox"
			       value="${(material.abcType)!}"/>
		</td>
	</tr>
</table>
<div dojoType="dijit.layout.TabContainer" style="width:100%;height:300px;">
<div dojoType="dijit.layout.ContentPane" title="物料详细信息表">
<table>
<tr>
	<td>
	<@s.text name="materialLength"/>：
	</td>
	<td>
		<input id="materialLength" name="master.materialDetail.materialLength" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.materialLength)!}"/>
	</td>
	<td>
	<@s.text name="materialWidth"/>：
	</td>
	<td>
		<input id="materialWidth" name="master.materialDetail.materialWidth" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.materialWidth)!}"/>
	</td>
	<td>
	<@s.text name="materialHight"/>：
	</td>
	<td>
		<input id="materialHight" name="master.materialDetail.materialHight" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.materialHight)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="measureUnit"/>：
	</td>
	<td>
		<input id="measureUnit" name="master.materialDetail.measureUnit" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.measureUnit)!}"/>
	</td>
	<td>
	<@s.text name="temperature"/>：
	</td>
	<td>
		<input id="temperature" name="master.materialDetail.temperature" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.temperature)!}"/>
	</td>
	<td>
	<@s.text name="temperatureUnit"/>：
	</td>
	<td>
		<input id="temperatureUnit" name="master.materialDetail.temperatureUnit" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.temperatureUnit)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="humidity"/>：
	</td>
	<td>
		<input id="humidity" name="master.materialDetail.humidity" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.humidity)!}"/>
	</td>
	<td>
	<@s.text name="humidityUnit"/>：
	</td>
	<td>
		<input id="humidityUnit" name="master.materialDetail.humidityUnit" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.humidityUnit)!}"/>
	</td>
	<td>
	<@s.text name="special"/>：
	</td>
	<td>
		<input id="special" name="master.materialDetail.special" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.special)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="shape"/>：
	</td>
	<td>
		<input id="shape" name="master.materialDetail.shape" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.shape)!}"/>
	</td>
	<td>
	<@s.text name="smell"/>：
	</td>
	<td>
		<input id="smell" name="master.materialDetail.smell" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.smell)!}"/>
	</td>
	<td>
	<@s.text name="category1"/>：
	</td>
	<td>
		<input id="category1" name="master.materialDetail.category1" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.category1)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="category2"/>：
	</td>
	<td>
		<input id="category2" name="master.materialDetail.category2" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.category2)!}"/>
	</td>
	<td>
	<@s.text name="category3"/>：
	</td>
	<td>
		<input id="category3" name="master.materialDetail.category3" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.category3)!}"/>
	</td>
	<td>
	<@s.text name="category4"/>：
	</td>
	<td>
		<input id="category4" name="master.materialDetail.category4" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.category4)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="category5"/>：
	</td>
	<td>
		<input id="category5" name="master.materialDetail.category5" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.category5)!}"/>
	</td>
	<td>
	<@s.text name="isTooLong"/>：
	</td>
	<td>
		<input id="isTooLong" name="master.materialDetail.isTooLong" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.isTooLong)!}"/>
	</td>
	<td>
	<@s.text name="isTooWeight"/>：
	</td>
	<td>
	<@checkbox id="isTooWeight" name="master.materialDetail.isTooWeight" value=master.materialDetail.isTooWeight/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="isTooHigh"/>：
	</td>
	<td>
	<@checkbox id="isTooHigh" name="master.materialDetail.isTooHigh" value=master.materialDetail.isTooHigh/>
	</td>
	<td>
	<@s.text name="isTooWidth"/>：
	</td>
	<td>
	<@checkbox id="isTooWidth" name="master.materialDetail.isTooWidth" value=master.materialDetail.isTooWidth/>
	</td>
	<td>
	<@s.text name="isCombustible"/>：
	</td>
	<td>
	<@checkbox id="isCombustible" name="master.materialDetail.isCombustible" value=master.materialDetail.isCombustible/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="isExplosive"/>：
	</td>
	<td>
	<@checkbox id="isExplosive" name="master.materialDetail.isExplosive" value=master.materialDetail.isExplosive/>
	</td>
	<td>
	<@s.text name="isExpensive"/>：
	</td>
	<td>
	<@checkbox id="isExpensive" name="master.materialDetail.isExpensive" value=master.materialDetail.isExpensive/>
	</td>
	<td>
	<@s.text name="isDangerous"/>：
	</td>
	<td>
	<@checkbox id="isDangerous" name="master.materialDetail.isDangerous" value=master.materialDetail.isDangerous/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="isCrisply"/>：
	</td>
	<td>
	<@checkbox id="isCrisply" name="master.materialDetail.isCrisply" value=master.materialDetail.isCrisply/>
	</td>
	<td>
	<@s.text name="canNotExtrusion"/>：
	</td>
	<td>
	<@checkbox id="canNotExtrusion" name="master.materialDetail.canNotExtrusion" value=master.materialDetail.canNotExtrusion/>
	</td>
	<td>
	<@s.text name="canNotInversion"/>：
	</td>
	<td>
	<@checkbox id="canNotInversion" name="master.materialDetail.canNotInversion" value=master.materialDetail.canNotInversion/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="dangerType"/>：
	</td>
	<td>
		<input id="dangerType" name="master.materialDetail.dangerType" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.dangerType)!}"/>
	</td>
	<td>
	<@s.text name="dangerSubType"/>：
	</td>
	<td>
		<input id="dangerSubType" name="master.materialDetail.dangerSubType" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.dangerSubType)!}"/>
	</td>
	<td>
	<@s.text name="dangerCode"/>：
	</td>
	<td>
		<input id="dangerCode" name="master.materialDetail.dangerCode" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.dangerCode)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="transType"/>：
	</td>
	<td>
		<input id="transType" name="master.materialDetail.transType" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.transType)!}"/>
	</td>
	<td>
	<@s.text name="component1"/>：
	</td>
	<td>
		<input id="component1" name="master.materialDetail.component1" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.component1)!}"/>
	</td>
	<td>
	<@s.text name="content1"/>：
	</td>
	<td>
		<input id="content1" name="master.materialDetail.content1" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.content1)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="component2"/>：
	</td>
	<td>
		<input id="component2" name="master.materialDetail.component2" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.component2)!}"/>
	</td>
	<td>
	<@s.text name="content2"/>：
	</td>
	<td>
		<input id="content2" name="master.materialDetail.content2" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.content2)!}"/>
	</td>
	<td>
	<@s.text name="component3"/>：
	</td>
	<td>
		<input id="component3" name="master.materialDetail.component3" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.component3)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="content3"/>：
	</td>
	<td>
		<input id="content3" name="master.materialDetail.content3" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.content3)!}"/>
	</td>
	<td>
	<@s.text name="component4"/>：
	</td>
	<td>
		<input id="component4" name="master.materialDetail.component4" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.component4)!}"/>
	</td>
	<td>
	<@s.text name="content4"/>：
	</td>
	<td>
		<input id="content4" name="master.materialDetail.content4" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.content4)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="component5"/>：
	</td>
	<td>
		<input id="component5" name="master.materialDetail.component5" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.component5)!}"/>
	</td>
	<td>
	<@s.text name="content5"/>：
	</td>
	<td>
		<input id="content5" name="master.materialDetail.content5" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.content5)!}"/>
	</td>
	<td>
	<@s.text name="remark"/>：
	</td>
	<td>
		<input id="remark" name="master.materialDetail.remark" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.remark)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="createMan"/>：
	</td>
	<td>
		<input id="createMan" name="master.materialDetail.createMan" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.createMan)!}"/>
	</td>
	<td>
	<@s.text name="udf1"/>：
	</td>
	<td>
		<input id="udf1" name="master.materialDetail.udf1" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf1)!}"/>
	</td>
	<td>
	<@s.text name="udf2"/>：
	</td>
	<td>
		<input id="udf2" name="master.materialDetail.udf2" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf2)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf3"/>：
	</td>
	<td>
		<input id="udf3" name="master.materialDetail.udf3" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf3)!}"/>
	</td>
	<td>
	<@s.text name="udf4"/>：
	</td>
	<td>
		<input id="udf4" name="master.materialDetail.udf4" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf4)!}"/>
	</td>
	<td>
	<@s.text name="udf5"/>：
	</td>
	<td>
		<input id="udf5" name="master.materialDetail.udf5" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf5)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf6"/>：
	</td>
	<td>
		<input id="udf6" name="master.materialDetail.udf6" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf6)!}"/>
	</td>
	<td>
	<@s.text name="udf7"/>：
	</td>
	<td>
		<input id="udf7" name="master.materialDetail.udf7" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf7)!}"/>
	</td>
	<td>
	<@s.text name="udf8"/>：
	</td>
	<td>
		<input id="udf8" name="master.materialDetail.udf8" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf8)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf9"/>：
	</td>
	<td>
		<input id="udf9" name="master.materialDetail.udf9" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf9)!}"/>
	</td>
	<td>
	<@s.text name="udf10"/>：
	</td>
	<td>
		<input id="udf10" name="master.materialDetail.udf10" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf10)!}"/>
	</td>
	<td>
	<@s.text name="udf11"/>：
	</td>
	<td>
		<input id="udf11" name="master.materialDetail.udf11" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf11)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf12"/>：
	</td>
	<td>
		<input id="udf12" name="master.materialDetail.udf12" dojoType="dijit.form.ValidationTextBox"
		       value="${(master.materialDetail.udf12)!}"/>
	</td>
	<td>
	<@s.text name="udf13"/>：
	</td>
	<td>
		<input id="udf13" name="master.materialDetail.udf13" dojoType="dijit.form.DateTextBox"
		       value="${getDate(master.materialDetail.udf13)}" value="${(master.materialDetail.udf13)!}"/>
	</td>
	<td>
	<@s.text name="udf14"/>：
	</td>
	<td>
		<input id="udf14" name="master.materialDetail.udf14" dojoType="dijit.form.DateTextBox"
		       value="${getDate(master.materialDetail.udf14)}" value="${(master.materialDetail.udf14)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf15"/>：
	</td>
	<td>
		<input id="udf15" name="master.materialDetail.udf15" dojoType="dijit.form.DateTextBox"
		       value="${getDate(master.materialDetail.udf15)}" value="${(master.materialDetail.udf15)!}"/>
	</td>
	<td>
	<@s.text name="udf16"/>：
	</td>
	<td>
		<input id="udf16" name="master.materialDetail.udf16" dojoType="dijit.form.DateTextBox"
		       value="${getDate(master.materialDetail.udf16)}" value="${(master.materialDetail.udf16)!}"/>
	</td>
	<td>
	<@s.text name="udf17"/>：
	</td>
	<td>
		<input id="udf17" name="master.materialDetail.udf17" dojoType="dijit.form.DateTextBox"
		       value="${getDate(master.materialDetail.udf17)}" value="${(master.materialDetail.udf17)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf18"/>：
	</td>
	<td>
		<input id="udf18" name="master.materialDetail.udf18" dojoType="dijit.form.DateTextBox"
		       value="${getDate(master.materialDetail.udf18)}" value="${(master.materialDetail.udf18)!}"/>
	</td>
</tr>
</table>
</div>
<div dojoType="dijit.layout.ContentPane" title="客户设置信息表">
	<table>
		<tr>
			<td>
			<@s.text name="dftPkgType"/>：
			</td>
			<td>
				<input id="dftPkgType" name="material.customerSetting.dftPkgType"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.dftPkgType)!}"/>
			</td>
			<td>
			<@s.text name="dftPkgCode"/>：
			</td>
			<td>
				<input id="dftPkgCode" name="material.customerSetting.dftPkgCode"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.dftPkgCode)!}"/>
			</td>
			<td>
			<@s.text name="dftRegRule"/>：
			</td>
			<td>
				<input id="dftRegRule" name="material.customerSetting.dftRegRule"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.dftRegRule)!}"/>
			</td>
		</tr>
		<tr>
			<td>
			<@s.text name="stockAssign"/>：
			</td>
			<td>
				<input id="stockAssign" name="material.customerSetting.stockAssign"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.stockAssign)!}"/>
			</td>
			<td>
			<@s.text name="dftBatchType"/>：
			</td>
			<td>
				<input id="dftBatchType" name="material.customerSetting.dftBatchType"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.dftBatchType)!}"/>
			</td>
			<td>
			<@s.text name="dftLocrevRule"/>：
			</td>
			<td>
				<input id="dftLocrevRule" name="material.customerSetting.dftLocrevRule"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.dftLocrevRule)!}"/>
			</td>
		</tr>
		<tr>
			<td>
			<@s.text name="dftPreAssignRule"/>：
			</td>
			<td>
				<input id="dftPreAssignRule" name="material.customerSetting.dftPreAssignRule"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.dftPreAssignRule)!}"/>
			</td>
			<td>
			<@s.text name="dftAssignRule"/>：
			</td>
			<td>
				<input id="dftAssignRule" name="material.customerSetting.dftAssignRule"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.dftAssignRule)!}"/>
			</td>
			<td>
			<@s.text name="dftSupplyRule"/>：
			</td>
			<td>
				<input id="dftSupplyRule" name="material.customerSetting.dftSupplyRule"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.dftSupplyRule)!}"/>
			</td>
		</tr>
		<tr>
			<td>
			<@s.text name="dftQtRule"/>：
			</td>
			<td>
				<input id="dftQtRule" name="material.customerSetting.dftQtRule" dojoType="dijit.form.ValidationTextBox"
				       value="${(material.customerSetting.dftQtRule)!}"/>
			</td>
			<td>
			<@s.text name="chargeRule"/>：
			</td>
			<td>
				<input id="chargeRule" name="material.customerSetting.chargeRule"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.chargeRule)!}"/>
			</td>
			<td>
			<@s.text name="rateId"/>：
			</td>
			<td>
				<input id="rateId" name="material.customerSetting.rateId" dojoType="dijit.form.ValidationTextBox"
				       value="${(material.customerSetting.rateId)!}"/>
			</td>
		</tr>
		<tr>
			<td>
			<@s.text name="settleId"/>：
			</td>
			<td>
				<input id="settleId" name="material.customerSetting.settleId" dojoType="dijit.form.ValidationTextBox"
				       value="${(material.customerSetting.settleId)!}"/>
			</td>
			<td>
			<@s.text name="carrierId"/>：
			</td>
			<td>
				<input id="carrierId" name="material.customerSetting.carrierId" dojoType="dijit.form.ValidationTextBox"
				       value="${(material.customerSetting.carrierId)!}"/>
			</td>
			<td>
			<@s.text name="firstOrderRule"/>：
			</td>
			<td>
				<input id="firstOrderRule" name="material.customerSetting.firstOrderRule"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.firstOrderRule)!}"/>
			</td>
		</tr>
		<tr>
			<td>
			<@s.text name="moneyType"/>：
			</td>
			<td>
				<input id="moneyType" name="material.customerSetting.moneyType" dojoType="dijit.form.ValidationTextBox"
				       value="${(material.customerSetting.moneyType)!}"/>
			</td>
			<td>
			<@s.text name="dftRecUnit"/>：
			</td>
			<td>
				<input id="dftRecUnit" name="material.customerSetting.dftRecUnit"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.dftRecUnit)!}"/>
			</td>
			<td>
			<@s.text name="depShpUnit"/>：
			</td>
			<td>
				<input id="depShpUnit" name="material.customerSetting.depShpUnit"
				       dojoType="dijit.form.ValidationTextBox" value="${(material.customerSetting.depShpUnit)!}"/>
			</td>
		</tr>
		<tr>
			<td>
			<@s.text name="printUnit"/>：
			</td>
			<td>
				<input id="printUnit" name="material.customerSetting.printUnit" dojoType="dijit.form.ValidationTextBox"
				       value="${(material.customerSetting.printUnit)!}"/>
			</td>
			<td>
			<@s.text name="ediCode"/>：
			</td>
			<td>
				<input id="ediCode" name="material.customerSetting.ediCode" dojoType="dijit.form.ValidationTextBox"
				       value="${(material.customerSetting.ediCode)!}"/>
			</td>
			<td>
			<@s.text name="scope"/>：
			</td>
			<td>
				<input id="scope" name="material.customerSetting.scope" dojoType="dijit.form.ValidationTextBox"
				       value="${(material.customerSetting.scope)!}"/>
			</td>
		</tr>
	</table>
</div>
<div dojoType="dijit.layout.ContentPane" title="物料组表">
	<link rel="stylesheet" href="${(path)!}/js/dojo/dojox/grid/resources/${(theme)!}Grid.css">
	<script language="javascript" type="text/javascript">
		dojo.require("dojox.grid.DataGrid");
		dojo.require("dojox.grid._CheckBoxSelector");
		dojo.require("dojo.data.ItemFileWriteStore");
	</script>
	<div id="materialGroup" autoHeight="true" style="width: 100%;"
	     dojoType="dojox.grid.DataGrid" singleClickEdit="true" structure="materialGroup_structure"
	     store="materialGroup_store">
	</div>
	<div style="width:100%; text-align:center;">
		<input type="button" id="addMaterialGroup" value="增加" class="addRow"/>
		<input type="button" id="deleteMaterialGroup" value="删除" class="deleteRow"/>
	</div>
	<script type="text/javascript" language="javascript">
		var materialGroup_store = new dojo.data.ItemFileWriteStore({
					data:{
						identifier:"id",
						label:"name",
						items:[
							<#list material.materialGroup![] as item >
								<#if (item_index > 0)>,</#if>
								{
									"id":"${(item.id)!}"
									,"chinaDesc": "${(item.chinaDesc)!}"
									,"rate": "${(item.rate)!}"
									,"customRate": "${(item.customRate)!}"
									,"exciseTaxRate": "${(item.exciseTaxRate)!}"
									,"valueaddedTaxRate": "${(item.valueaddedTaxRate)!}"
									,"seqDesc": "${(item.seqDesc)!}"
								}
							</#list>
						]
					}
				});
		var materialGroup_structure = [
			{ type: "dojox.grid._CheckBoxSelector"}
			,
			{cells:[
				[
					new dojox.grid.cells.RowIndex({ width:"2",name:""}),
					{
						"name" : "<@s.text name="chinaDesc"/>"
						,"field" : "chinaDesc"
						,"width" :"17%"
						,"editable" : true
						,"headerClasses" : "gridHeader"
					}
					,{
					"name" : "<@s.text name="rate"/>"
					,"field" : "rate"
					,"width" :"17%"
					,"editable" : true
					,"headerClasses" : "gridHeader"
				}
					,{
					"name" : "<@s.text name="customRate"/>"
					,"field" : "customRate"
					,"width" :"17%"
					,"editable" : true
					,"headerClasses" : "gridHeader"
				}
					,{
					"name" : "<@s.text name="exciseTaxRate"/>"
					,"field" : "exciseTaxRate"
					,"width" :"17%"
					,"editable" : true
					,"headerClasses" : "gridHeader"
				}
					,{
					"name" : "<@s.text name="valueaddedTaxRate"/>"
					,"field" : "valueaddedTaxRate"
					,"width" :"17%"
					,"editable" : true
					,"headerClasses" : "gridHeader"
				}
					,{
					"name" : "<@s.text name="seqDesc"/>"
					,"field" : "seqDesc"
					,"width" :"17%"
					,"editable" : true
					,"headerClasses" : "gridHeader"
				}
				]
			]
			}
		];
		var materialGroup_index = 0;
		//新增行按钮
		dojo.connect(dojo.byId("addMaterialGroup"), "click", function() {
			materialGroup_store.newItem({
						"id" : materialGroup_index
						,"chinaDesc": ""
						,"rate": ""
						,"customRate": ""
						,"exciseTaxRate": ""
						,"valueaddedTaxRate": ""
						,"seqDesc": ""
					});
			materialGroup_index++;
		})
		//删除行按钮
		dojo.connect(dojo.byId("deleteMaterialGroup"), "click", function() {
			dijit.byId("materialGroup").removeSelectedRows();
		})
	</script>
</div>
</div>
<@listButton/>
</form>
</@html>
<script language="javascript" type="text/javascript">
	dojo.ready(function() {
		//事件注册
		//保存
		dojo.connect(dijit.byId("btnSave"), "onClick", function() {
			//增加列表参数
			var param = dojo.formToObject("updateForm");
			dojo.safeMixin(param, storeItemToParam(materialGroup_store, "material.materialGroup"));
			if (dijit.byId("updateForm").validate()) {
				dojo.xhrPost({
							url : "${(path)!}/master/material.update.do",
							content : param,
							handleAs : "json",
							load : function(json) {
								handleJsonMessage({
											message:json,
											callback:function() {
												parent.publish("material/refresh");
												parent.closeDialog();
											}
										})
							}
						});
			}
		});
	})
</script>
